# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-browser-cookie3
_pkgname=browser-cookie3
pkgver=0.20.1
pkgrel=1
pkgdesc='Loads cookies from your browser into a cookiejar object.'
url='https://pypi.org/project/browser-cookie3/#files'
arch=('any')
license=('LGPL')
depends=('python' 'python-pyaes' 'python-pbkdf2' 'python-lz4'
         'python-pycryptodome' 'python-pycryptodomex' 'python-secretstorage')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('034bd5f6564cc3893c77eadbbd1666428b0c51eced4355697511b9f4acdcdfb5e985248288a1ce77f30e9ad2c8c7bb9009e570805a7089c714cb495f4debf38b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

